#ifndef TASKITEM_H
#define TASKITEM_H

#include <QWidget>
#include <QPainter>
#include <QStyleOption>
#include "model/task.h"
namespace Ui {
class TaskItem;
}

class TaskItem : public QWidget
{
    Q_OBJECT
    
public:
    explicit TaskItem(QWidget *parent = 0);
    ~TaskItem();
    void paintEvent(QPaintEvent *);

    void setTask(Task *task);
private:
    Ui::TaskItem *ui;

    Task *task;
};

#endif // TASKITEM_H
